import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';

// 导入 Antd UI 依赖
import {  ConfigProvider } from 'antd';
import zhCN from 'antd/locale/zh_CN';
import { light } from '@/theme';

// 导入 Redux 依赖
import { Provider } from 'react-redux'
import { PersistGate } from 'redux-persist/integration/react'
import { persistor, store } from '@/redux/index'
import App from './App';


import '@/styles/tailwind.scss'
import '@/styles/index.scss'
import 'antd/dist/reset.css'; 

createRoot(document.getElementById('root')).render(
  <StrictMode>
    <ConfigProvider locale={zhCN} theme={light}>
      <Provider store={store}>
        <PersistGate loading={null} persistor={persistor}>
          <App></App>
        </PersistGate>
      </Provider>
    </ConfigProvider>
  </StrictMode>
);